/**
 * 获取表格列属性
 * @param {Object} column 列配置
 * @returns {Object} 处理后的列属性
 */
export const getColumnProps = (column) => {
  const { render, ...rest } = column
  return {
    ...rest,
    render,
    align: rest.align || 'center',
  }
}

/**
 * 获取默认分页配置
 * @returns {Object} 分页配置对象
 */
export const getDefaultPaginationConfig = () => ({
  currentPage: 1,
  pageSize: 10,
  pageSizes: [10, 20, 30, 50],
  total: 0,
  layout: 'total, sizes, prev, pager, next, jumper'
})

/**
 * 获取移动端分页配置
 * @returns {Object} 移动端分页配置
 */
export const getMobilePaginationConfig = () => ({
  ...getDefaultPaginationConfig(),
  layout: 'prev, pager, next',
  pagerCount: 5,
  size: 'small'
}) 